package ochart.utils.logging.appender
{
	import ochart.utils.logging.Log;
	import ochart.utils.logging.layout.SimpleLayout;

	public class TraceAppender extends Appender
	{
		
		public function TraceAppender()
		{
			super();
			
			layout = new SimpleLayout()
		}
		
		override public function append(log:Log):Boolean
		{
			if(!log)
			{
				return false;
			}
			trace(layout.format(log));
			return true;
		}
	}
}